<div class="col_body row">
    <div class="col_body_btn col-body_color">
        <ul class="col_kind clearfix">
            <li class="clearfix color1">
                <a href="{{ url('index/attendance',['route':'user-rcd-clock/index']) }}">
                    <div class="pull-left">
                        <span>出勤天数</span>
                    </div>
                    <div class="pull-right">
                        <span><?=$work['working_days_count']?></span>
                    </div>
                </a>
            </li>
            <li class="clearfix color2">
                <a href="{{ url('index/attendance',['route':'user-rcd-leave/index'])}}">
                    <div class="pull-left">
                        <span>假期总数</span>
                    </div>
                    <div class="pull-right">
                        <span><?=$work['total_days_count']?>天</span>
                    </div>
                </a>
            </li>
            <li class="clearfix color3">
                <a href="{{ url('index/parameter',['route':'instrument/index'])}}">
                    <div class="pull-left">
                        <span>在库资产</span>
                    </div>
                    <div class="pull-right">
                        <span><?=isset($types['在库'])?$types['在库']['num']:0?></span>
                    </div>
                </a>
            </li>
            <li class="clearfix color4">
                <a href="{{  url('index/parameter',['route':'instrument/index']) }}">
                    <div class="pull-left">
                        <span>停用资产</span>
                    </div>
                    <div class="pull-right">
                        <span><?=isset($types['停用'])?$types['停用']['num']:0?></span>
                    </div>
                </a>
            </li>
            <li class="clearfix color5">
                <a href="{{  url('index/parameter',['route':'instrument/index']) }}">
                    <div class="pull-left">
                        <span>禁用资产</span>
                    </div>
                    <div class="pull-right">
                        <span><?=isset($types['禁用'])?$types['禁用']['num']:0?></span>
                    </div>
                </a>
            </li>
        </ul>
        <ul class="clearfix col_kind1">
            <li class="color6">
                <a href="{{  url('index/attendance',['route':'user-rcd-leave/index']) }}">
                    <div class="pull-left">
                        {{ image('/pc/img/47.png') }}
                    </div>
                    <div class="pull-right">
                        <p>个人假期到期提醒</p>
                        <span><?=$work['rcd_leave_expire_count']?></span>
                    </div>
                </a>
            </li>
            <li class="color7">
                <a href="{{  url('index/parameter',['route':'instrument/index']) }}">
                    <div class="pull-left">
                        {{ image('/pc/img/48.png') }}
                    </div>
                    <div class="pull-right">
                        <p>固定资产到期提醒</p>
                        <span><?=$ins_return_count?></span>
                    </div>
                </a>
            </li>
            <li class="color8">
                <a href="{{  url('index/car',['route':'car/index']) }}">
                    <div class="pull-left">
                        {{ image('/pc/img/49.png') }}
                    </div>
                    <div class="pull-right">
                        <p>车辆年检(保险)到期提醒</p>
                        <span><?=$car_verify_count?></span>
                    </div>
                </a>
            </li>
        </ul>
    </div>
    <div class="col_body_list clearfix">
        <div class="col-sm-6 p0">
            <div class="list1t clearfix">
                <div class="list1tl">
                    {{ image('/pc/img/34.png') }}
                </div>
                <div class="list1tr">
                    <p>通知公告</p>
                </div>
            </div>
            <div class="list1b">
                <ul class="clearfix">
                    <?php foreach($announces as $key=>$announce):?>
                    <li class="clearfix">
                        <div class="list1b1">
                            <p><a href="{{  url('index/rule',['route':'announce/view','names[]':'pid','values[]':announce.pid])}}"><?=$key+1?>、<?=$announce['title']?></a></p>
                        </div>
                        <div class="list1b2">
                            <p><a href="{{  url('index/rule',['route':'announce/view','names[]':'pid','values[]':announce.pid])}}"><?=$announce['created_at']?></a></p>
                        </div>
                    </li>
                    <?php endforeach;?>
                </ul>
            </div>
        </div>
        <div class="col-sm-6 p0">
            <div class="list1t clearfix">
                <div class="list1tl">
                    {{ image('/pc/img/38.png') }}
                </div>
                <div class="list1tr">
                    <p>制度管理</p>
                </div>
            </div>
            <div class="list1b list1bx">
                <ul class="clearfix">
                    <?php foreach($rules as $rule):?>
                    <li class="clearfix">
                        <div class="list1b3">
                            <p><a href="{{  url('index/rule',['route':'rule/view','names[]':'id','values[]':rule.id])}}"><?=$rule['title']?></a></p>
                        </div>
                        <div class="list1b4">
                            <p><?=$rule['created_at']?><a href="{{  url('rule/download',['id':rule.id])}}">下载</a></p>
                        </div>
                    </li>
                    <?php endforeach;?>
                </ul>
            </div>
        </div>
        <div class="col-sm-12 p0 psectle">
            <div class="list1tax clearfix">
                <div class="list1taxl">
                    {{ image('/pc/img/50.png') }}
                </div>
                <div class="list1taxr clearfix">
                    <p>出勤情况</p>
                </div>
            </div>
            <div class="list1bax">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th><p>序号</p></th>
                        <th><p>部门</p></th>
                        <th><p>姓名</p></th>
                    </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="col-sm-12 p0 psectle">
            <div class="list1tax clearfix">
                <div class="list1taxl">
                    {{ image('/pc/img/51.png') }}
                </div>
                <div class="list1taxr">
                    <p>假期管理</p>
                </div>
            </div>
            <div class="list1bax">
                <table class="table table-hover table1">
                    <thead>
                    <tr>
                        <th><p>序号</p></th>
                        <th><p>类别</p></th>
                        <th><p>部门</p></th>
                        <th><p>姓名</p></th>
                        <th><p>休假事由</p></th>
                        <th><p>假期总数</p></th>
                        <th><p>已用（天、次）</p></th>
                        <th><p>剩余（天、次）</p></th>
                    </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>
        </div>
        <div class="col-sm-12 p0 imgxiugai">
            <div class="list1tax clearfix">
                <div class="list1taxl">
                    {{ image('/pc/img/52.png') }}
                </div>
                <div class="list1taxr">
                    <p>汽车派遣</p>
                </div>
            </div>
            <div class="list1bax list1bax2">
                <table class="table table-hover table1">
                    <thead>
                    <tr>
                        <th><p>Pid</p></th>
                        <th><p>车牌号</p></th>
                        <th><p>车型</p></th>
                        <th><p>燃料</p></th>
                        <th><p>使用部门</p></th>
                        <th><p>颜色</p></th>
                        <th><p>状态</p></th>
                        <th><p>出入库情况</p></th>
                        <th><p>创建时间</p></th>
                        <th><p>修改时间</p></th>
                    </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>
        </div>
        <div class="col-sm-12 p0">
            <div class="list1tax clearfix">
                <div class="list1taxl">
                    {{ image('/pc/img/37.png') }}
                </div>
                <div class="list1taxr">
                    <p>资产设备故障信息列表</p>
                </div>
            </div>
            <div class="list1bax list1bax2 list1bax3">
                <table class="table table-hover table1">
                    <thead>
                    <tr>
                        <th><p>统一编号</p></th>
                        <th><p>设备名称</p></th>
                        <th><p>型号规格</p></th>
                        <th><p>部门</p></th>
                        <th><p>故障类型</p></th>
                        <th><p>资产状态</p></th>
                        <th><p>损坏原因</p></th>
                        <th><p>录入时间</p></th>
                        <th><p>报修状态</p></th>
                        <th><p>报修人</p></th>
                        <th><p>报修时间</p></th>
                        <th><p>修理单位</p></th>
                    </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script>
    function Distance_jud() {
        var W = $(window).width();
        var H = $(window).height();
        for(var i=240;i<256;i++){
            var W1 = W-i;
            $(".bodyr").width(W1);
            if($(".bodyr").scrollTop() <200){
                break;
            }
        }
        var H1 = H-190;
        $(".bodyr").width(W1);
        $(".bodyer").height(H1);
    }

    Distance_jud();

    $(window).on("resize",function(){
        Distance_jud();
    });
    $('.gotomaintain').click(function(){
        location.href="{{ url('index/maintain',['route':'record-maintain/index-by-admin'])}}";
    });
</script>
